create

open fun <A, B> create(a: A, b: B): Pair<A, B>(source)

Convenience method for creating an appropriately typed pair.

Return

a Pair that is templatized with the types of a and b

Parameters

a

the first object in the Pair

b

the second object in the pair